package com.lk.ii.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lk.common.annotation.Excel;
import com.lk.common.core.domain.BaseEntity;

/**
 * 文章管理对象 ii_article
 * 
 * @author lk
 * @date 2021-02-02
 */
public class IiArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long id;

    /** SID */
    private String sid;

    /** 类型 */
    @Excel(name = "类型")
    private Long categoryId;

    /** 作者 */
    @Excel(name = "作者")
    private Long authorId;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 简介 */
    private String description;

    /** 内容 */
    private String content;

    /** 来源连接 */
    private String source;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 60, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /** 点击量 */
    @Excel(name = "点击量")
    private Long click;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long praise;

    /** 收藏量 */
    @Excel(name = "收藏量")
    private Long collect;

    /** 转发量 */
    @Excel(name = "转发量")
    private Long transmit;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSid(String sid)
    {
        this.sid = sid;
    }

    public String getSid()
    {
        return this.sid;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setClick(Long click) 
    {
        this.click = click;
    }

    public Long getClick() 
    {
        return click;
    }
    public void setPraise(Long praise) 
    {
        this.praise = praise;
    }

    public Long getPraise() 
    {
        return praise;
    }
    public void setCollect(Long collect) 
    {
        this.collect = collect;
    }

    public Long getCollect() 
    {
        return collect;
    }
    public void setTransmit(Long transmit) 
    {
        this.transmit = transmit;
    }

    public Long getTransmit() 
    {
        return transmit;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sid", getSid())
            .append("categoryId", getCategoryId())
            .append("authorId", getAuthorId())
            .append("cover", getCover())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("content", getContent())
            .append("source", getSource())
            .append("publishTime", getPublishTime())
            .append("click", getClick())
            .append("praise", getPraise())
            .append("collect", getCollect())
            .append("transmit", getTransmit())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
